package com.secxiot.provider.communication.dao;

import com.secxiot.provider.communication.entity.CommunicationDetailAttachment;
import com.secxiot.provider.communication.entity.CommunicationDetailAttachmentExample;
import com.secxiot.provider.communication.vo.CommunicationAttachVo;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommunicationDetailAttachmentDao {
	int countByExample(CommunicationDetailAttachmentExample example);

	int deleteByExample(CommunicationDetailAttachmentExample example);

	int deleteByPrimaryKey(Long id);

	int insert(CommunicationDetailAttachment record);

	int insertSelective(CommunicationDetailAttachment record);

	List<CommunicationDetailAttachment> selectByExample(CommunicationDetailAttachmentExample example);

	CommunicationDetailAttachment selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") CommunicationDetailAttachment record,
			@Param("example") CommunicationDetailAttachmentExample example);

	int updateByExample(@Param("record") CommunicationDetailAttachment record,
			@Param("example") CommunicationDetailAttachmentExample example);

	int updateByPrimaryKeySelective(CommunicationDetailAttachment record);

	int updateByPrimaryKey(CommunicationDetailAttachment record);

	List<CommunicationAttachVo> getListByCommunicationDetailId(
			@Param("communicationDetailId") Long communicationDetailId);

	void deleteByCommunicationId(@Param("communicationId") Long communicationId);
}